<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="keywords" content="梦中PHP,DreamPHP,Thinkphp,Laravel,PHP">
    <meta name="description" content="梦中PHP，英文名DreamPHP，是一个专注于ThinkPHP和Laravel开发的教程网站！">
    <title>{$webInfo.webname|default='梦中PHP——拜师QQ:305530751'}——拜师QQ:305530751</title>
    <link rel="shortcut icon" href="/static/index/img/logo.jpg" type="image/x-icon">
    <link rel="stylesheet" href="/static/index/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/index/css/main.css">
</head>
<body>
<nav class="navbar navbar-default navbar-inverse navbar-static-top navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <a href="{:url('index/index/index')}" class="navbar-brand">{$webInfo.webname}</a>
            <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-menu">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>
        <div class="navbar-menu collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="{:url('index/index/index')}">首页</a></li>
                {volist name="cateList" id="vo"}
                <li><a href="{:url('index/index/index', ['id' => $vo.id])}">{$vo.catename}</a></li>
                {/volist}
            </ul>
            <ul class="nav navbar-nav navbar-right">
                {if !session('?username')}
                <li><a href="{:url('index/index/login')}">登录</a></li>
                <li><a href="{:url('index/index/register')}">注册</a></li>
                {else /}
                <li><a href="#">{:session('username')}</a></li>
                <li><a href="#" id="loginout">退出</a></li>
                {/if}
                <li><a href="javascript:;" id="post">投稿中心</a></li>
            </ul>
        </div>
    </div>
</nav>